<?php
include_once("isLogin.php")
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>修改</title>
</head>
<body>
<form action="editaction.php" method="POST">
  <table>
    <caption><b>修改管理员</b></caption>
    <?php
    include_once("conn.php");
    $sql = "select * from users where id = ".$_GET["id"];
    $result = mysqli_query($conn,$sql);
    $myrow = mysqli_fetch_assoc($result);
    ?>
    <input type="hidden" name="id" value="<?=$_GET['id']?>">
    <tr>
      <td>用户名:</td>
      <td><input name="user" type="text" required placeholder="请输入用户名" value="<?=$myrow["username"]?>"></td>
    </tr>
    <tr>
      <td>密码:</td>
      <td><input name="password" type="password" required placeholder="请输入密码" value="<?=$myrow["password"]?>"></td>
    </tr>
    <tr>
      <td><input type="submit" value="提交"></td>
      <td><button type="reset">重置</button></td>
    </tr>
  </table>
</form>
</body>
<style>
table{
  margin: 0 auto;
  border-collapse: collapse;
}
td{
  border: 1px solid #000;
  height: 40px;
}
</style>
</html>